let storage: Storage;

if (typeof localStorage === 'undefined' || localStorage === null) {
  const { LocalStorage } = require('node-localstorage');
  storage = new LocalStorage('./scratch');
} else {
  storage = localStorage;
}

export default storage;
